//
//  CaseHistoryControl.m
//  WE
//
//  Created by iMacOne on 15/11/28.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "CaseHistoryControl.h"
#import <Masonry.h>
#import "Size.h"
@implementation CaseHistoryControl

- (void)viewDidLoad
{
    self.navigationItem.title = @"家庭病历";
    self.view.backgroundColor = [UIColor whiteColor];
    [self creatNoDataView];
    
    
}
- (void)viewWillAppear:(BOOL)animated
{
    self.navigationController.navigationBar.hidden = NO;
    
}

- (void)creatNoDataView
{
    UIImageView * aImageView = [UIImageView new];
    [self.view addSubview:aImageView];
    aImageView.backgroundColor = DEBUG_CLOLR;
    [aImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(120);
        make.centerX.equalTo(self.view);
        make.size.mas_equalTo(CGSizeMake(50, 50));
        
    }];

    UILabel * lbl = [UILabel new];
    [self.view addSubview:lbl];
    //    lbl.backgroundColor = DEBUG_CLOLR;
    lbl.text = @"暂无病历信息";
    lbl.font = FONT(14);
    lbl.textColor = [UIColor grayColor];
    //    lbl.textAlignment = NSTextAlignmentCenter;
    [lbl mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(aImageView.mas_bottom).offset(20);
        make.centerX.equalTo(self.view);
        make.height.offset(20);
    }];


    
    
}
@end
